Options:
a. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]">
<select>
<option ng-repeat="name in names">{{name.firstname+" "+name.lastname}}</option>
</select>
</div>
b. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]">
<select>
<option>{{names[0].firstname+" "+names[0].lastname}}</option>
<option>{{names[1].firstname+" "+names[1].lastname}}</option>
<option>{{names[2].firstname+" "+names[2].lastname}}</option>
</select>
</div>
c. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]">
<select>
<option>{{names[1].firstname+" "+names[1].lastname}}</option>
<option>{{names[2].firstname+" "+names[2].lastname}}</option>
<option>{{names[3].firstname+" "+names[3].lastname}}</option>
</select>
</div>
d. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]">
<select>
<option ng-bind="names[0].firstname+' '+names[0].lastname"></option>
<option ng-bind="names[1].firstname+' '+names[1].lastname"></option>
<option ng-bind="names[2].firstname+' '+names[2].lastname"></option>
</select>
</div>
Reveal Answer